Skip to content

Google Antigravity sign-in waits 20 minutes for the pasted redirect URL - #36

Closed
vadymhimself wants to merge 1 commit into
release/2.65.0-vadymhimself.15from
fix/antigravity-login-wait
Closed

vadymhimself wants to merge 1 commit into
release/2.65.0-vadymhimself.15from
fix/antigravity-login-wait

Conversation

@vadymhimself

Copy link
Copy Markdown
Collaborator

Google Antigravity sign-in: wait 20 minutes for the pasted redirect URL instead of the 5-minute default.

Without a local browser, the person finishes Google consent, lands on a 127.0.0.1 page that does not load, then copies the URL from the address bar and pastes it back. That often takes more than 5 minutes; the flow had already given up, so the paste was refused as expired.

  • src/oauth/google-antigravity.ts: ANTIGRAVITY_LOGIN_TIMEOUT_MS = 20 * 60 * 1000, passed as timeoutMs (the base class already supports it). The flow class is exported for the test.
  • No version bump here: this ships in the next release-line tag together with the other open release-line PRs.

Eval added/updated: tests/oauth/oauth-callback-server.test.ts "Google Antigravity sign-in waits 20 minutes for the pasted redirect URL, not the 5-minute default". It fails on the old code (300000) and binds no port.

🤖 Generated with Claude Code

@github-actions

Copy link
Copy Markdown

✅ Deterministic PR hygiene checks passed.

@vadymhimself

Copy link
Copy Markdown
Collaborator Author

QA-RECEIPT repo=opencodex pr=36 sha=3d6f78eb128749acdc16555197d634d507f36775 verdict=HOLD

independent-qa HOLD at 3d6f78e. The code is fine. The hold is on CI.

  • Diff: in src/oauth/google-antigravity.ts, ANTIGRAVITY_LOGIN_TIMEOUT_MS = 20 * 60 * 1000 is passed as timeoutMs to super, and the class is exported for the test. The base constructor takes options.timeoutMs ?? DEFAULT_TIMEOUT (300 000), and login() waits on AbortSignal.timeout(this.timeoutMs). loginAntigravity() builds this class, so the override is on the real path and nothing shadows it.
  • Test: it asserts flow.timeoutMs === 20 min. The constructor never serves, and login() isn't called, so it binds no port. On the old code the named import is missing, so the file fails at import.
  • Why HOLD: test 4/4 is red. Bun timed out at 120 s in shard 4/4, batch 8/39 (exit 124). That batch holds tests/cli and tests/clients files and no oauth file, so it looks unrelated, but CI doesn't retry. Please rerun the job. desktop shell was still pending. enforce-target (the wrong-base check) passed. I'll stamp GREEN at this head once test 4/4 and desktop shell are green.
  • Not in this PR, but it decides whether hosted users get the 20 minutes: on agentradar-paperclip dev, loginMinutes() in server/src/services/hosted-ocx-login.ts (line 79) returns 5 for gemini. That 5 minutes sets the hosted login session's expiresAt, and the hosted worker also caps a flow at 20 min. So a hosted Gemini sign-in still ends at 5 minutes. Raise gemini's loginMinutes to 20 in a paperclip PR if hosted users should get it.

@vadymhimself

Copy link
Copy Markdown
Collaborator Author

QA-RECEIPT repo=opencodex pr=36 sha=3d6f78eb128749acdc16555197d634d507f36775 verdict=GREEN

independent-qa GREEN at 3d6f78e. There has been no push since my HOLD. The code review from that HOLD stands, and CI is now fully green at this head: ci, test 1/4 through test 4/4, desktop shell, enforce-target, gates, docker smoke and the npm-global and keyring jobs all succeeded. The rest are skipped by path. The PR is clean against its base.

One note, not a blocker: test 4/4 needed two reruns. The failure was a Bun 120 s batch timeout in tests/cli and tests/clients, with no oauth file in that batch, so it isn't caused by this diff. It is still a retried CI job, so it needs its own fix card in the next release: split that batch or raise its time limit.

Merge at exactly 3d6f78e.

@vadymhimself

Copy link
Copy Markdown
Collaborator Author

Moved to #38: same head commit, on a gauge/ branch so the side sweep can merge it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant